<template>
    <div>
        <top-style
            ><span>{{ frist.name }}</span></top-style
        >
        <div class="plate-style">
            <ul>
                <li v-for="item in frist.list" :key="item.id">
                    <router-link :to="{ name: 'detail', query: { id: item.id, title: item.title } }">
                        <div class="img-box">
                            <img :src="item.cover" alt="" />
                        </div>
                        <p>{{ item.title }}</p>
                    </router-link>
                </li>
            </ul>
        </div>
    </div>
</template>

<script>
import TopStyle from "@/components/top-style.vue";
export default {
    props: ["frist"],
    data() {
        return {};
    },
    components: {
        TopStyle,
    },
    created() {
        // console.log(this.frist);
    },
};
</script>

<style lang="scss" scoped>
.plate-style {
    width: 100%;
    ul {
        width: 100%;
        display: flex;
        justify-content: space-between;

        a,
        li {
            width: 30%;
            .img-box {
                width: 100%;
                height: 140px;
                border: 1px solid #f6f6f6;
                // box-shadow: 5px 5px 5px #000;

                img {
                    width: 100%;
                    height: 100%;
                }
            }
            p {
                margin-top: 5px;
                text-align: start;
                font-size: 13px;
                color: #313131;
            }
        }
    }
}
</style>
